<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="seckill_ProductName" label="服务介绍" width="180">
      </el-table-column>
      <el-table-column prop="seckill_BeforePrice" label="服务价格" width="180">
      </el-table-column>
      <el-table-column prop="seckill_NowPrice" label="秒杀价格">
      </el-table-column>
      <el-table-column prop="seckill_ProduceStock" label="库存">
      </el-table-column>
      <el-table-column prop="seckill_StartTime" label="开始世界">
      </el-table-column>
      <el-table-column prop="seckill_EndTime" label="结束时间">
      </el-table-column>
      <el-table-column prop="seckill_IsShow" label="开启状态">
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.row)"
            >加入订单</el-button
          >
          <el-button size="mini" type="danger" @click="handleDelete(scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [{}],
    };
  },
  created() {
    this.$axios("https://localhost:44396/api/service/redis/seckillredis").then(
      (s) => {
        this.tableData = s.data.data;
        console.log(localStorage.getItem("userinfo"));
        
        alert(localStorage.getItem("userinfo"));
      }
    );
  },
  methods: {
    handleEdit(row) {
      console.log(row);
    },
  },
};
</script>